/****************************Tools*****************************/

//判断移动端ios
function checkIsAppleDevice() {
var u = navigator.userAgent, app = navigator.appVersion;
     var ios = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
     var iPad = u.indexOf('iPad') > -1;
     var iPhone = u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1;
     if (ios || iPad || iPhone) {
         return true;
     } else {
         return false;
     }
 }

//Android
 function checkIsAndroidDevice(){
    var u = navigator.userAgent;
    if ( u.indexOf('Android') > -1 || u.indexOf('Adr') > -1 ) {
        return true;
    } else {
        return false;
    }
}